Skip to content

fix(cargo,dart): handle multi-byte chars and wildcard version matching#59

Merged
bug-ops merged 1 commit intomainfrom
fix/cargo-multibyte-panic
Feb 16, 2026
Merged

fix(cargo,dart): handle multi-byte chars and wildcard version matching#59
bug-ops merged 1 commit intomainfrom
fix/cargo-multibyte-panic

Conversation

@bug-ops
Copy link
Owner

@bug-ops bug-ops commented Feb 16, 2026

Summary

  • Cargo parser: adjust search_start to char boundary when slicing content for dependency name lookup, preventing panic on Cargo.toml files containing multi-byte UTF-8 characters (e.g. emoji in AppFlowy)
  • Dart version: treat "*" as wildcard (alias for "any") to match the convention used by deps-lsp core when fetching latest versions via get_latest_matching(name, "*")

Test plan

  • cargo nextest run -- all tests pass
  • cargo clippy --workspace --all-targets --all-features -- -D warnings -- clean
  • Manual test: AppFlowy pubspec.yaml (139 deps) loads without panic, all versions resolved

@github-actions github-actions bot added rust Rust code changes parser Parser changes needs-review Needs review size: XS <10 lines changed labels Feb 16, 2026
Cargo parser: adjust search_start to char boundary when slicing
content for dependency name lookup, preventing panic on files
containing multi-byte UTF-8 characters.

Dart version: treat "*" as wildcard (alias for "any") to match
the convention used by deps-lsp core when fetching latest versions.
@bug-ops bug-ops force-pushed the fix/cargo-multibyte-panic branch from 72d83ed to 63dd80d Compare February 16, 2026 16:06
@bug-ops bug-ops enabled auto-merge (squash) February 16, 2026 16:07
@bug-ops bug-ops merged commit 52614b2 into main Feb 16, 2026
20 checks passed
@bug-ops bug-ops deleted the fix/cargo-multibyte-panic branch February 16, 2026 16:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs-review Needs review parser Parser changes rust Rust code changes size: XS <10 lines changed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant